#ifndef DEVICE_H
#define DEVICE_H

#define  LED_DS1_TRIGGER    "/sys/class/leds/user-led/trigger" 
#define  LED_DS1_BRIGHTNESS "/sys/class/leds/user-led/brightness"

#define  LED_DS0_TRIGGER    "/sys/class/leds/sys-led/trigger" 
#define  LED_DS0_BRIGHTNESS "/sys/class/leds/sys-led/brightness"

#define  KEY_PATH           "/dev/input/event1"


//声明变量
int g_buttonfd;

int g_ledfd1_trigger;
int g_ledfd1_brightness;
int g_ledfd0_trigger;
int g_ledfd0_brightness;

int InitDriver();
int get_key_id();

#endif 
